Integrand size = 23, antiderivative size = 99 \[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\frac {\operatorname {AppellF1}\left (\frac {3}{2},2+p,-p,\frac {5}{2},-\tan ^2(e+f x),-\frac {(a+b) \tan ^2(e+f x)}{a}\right ) \sec ^2(e+f x)^p \left (a+b \sin ^2(e+f x)\right )^p \tan ^3(e+f x) \left (1+\frac {(a+b) \tan ^2(e+f x)}{a}\right )^{-p}}{3 f} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3253, 525, 524} \[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\frac {\tan ^3(e+f x) \sec ^2(e+f x)^p \left (a+b \sin ^2(e+f x)\right )^p \left (\frac {(a+b) \tan ^2(e+f x)}{a}+1\right )^{-p} \operatorname {AppellF1}\left (\frac {3}{2},p+2,-p,\frac {5}{2},-\tan ^2(e+f x),-\frac {(a+b) \tan ^2(e+f x)}{a}\right )}{3 f} \]
[In]
[Out]
Rule 524
Rule 525
Rule 3253
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sec ^2(e+f x)^p \left (a+b \sin ^2(e+f x)\right )^p \left (a+(a+b) \tan ^2(e+f x)\right )^{-p}\right ) \text {Subst}\left (\int x^2 \left (1+x^2\right )^{-2-p} \left (a+(a+b) x^2\right )^p \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {\left (\sec ^2(e+f x)^p \left (a+b \sin ^2(e+f x)\right )^p \left (1+\frac {(a+b) \tan ^2(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int x^2 \left (1+x^2\right )^{-2-p} \left (1+\frac {(a+b) x^2}{a}\right )^p \, dx,x,\tan (e+f x)\right )}{f} \\ & = \frac {\operatorname {AppellF1}\left (\frac {3}{2},2+p,-p,\frac {5}{2},-\tan ^2(e+f x),-\frac {(a+b) \tan ^2(e+f x)}{a}\right ) \sec ^2(e+f x)^p \left (a+b \sin ^2(e+f x)\right )^p \tan ^3(e+f x) \left (1+\frac {(a+b) \tan ^2(e+f x)}{a}\right )^{-p}}{3 f} \\ \end{align*}
Time = 0.32 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.03 \[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\frac {\operatorname {AppellF1}\left (\frac {3}{2},\frac {1}{2},-p,\frac {5}{2},\sin ^2(e+f x),-\frac {b \sin ^2(e+f x)}{a}\right ) \sqrt {\cos ^2(e+f x)} \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \left (\frac {a+b \sin ^2(e+f x)}{a}\right )^{-p} \tan (e+f x)}{3 f} \]
[In]
[Out]
\[\int \left (\sin ^{2}\left (f x +e \right )\right ) {\left (a +b \left (\sin ^{2}\left (f x +e \right )\right )\right )}^{p}d x\]
[In]
[Out]
\[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\int { {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \sin \left (f x + e\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\int { {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \sin \left (f x + e\right )^{2} \,d x } \]
[In]
[Out]
\[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\int { {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \sin \left (f x + e\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sin ^2(e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx=\int {\sin \left (e+f\,x\right )}^2\,{\left (b\,{\sin \left (e+f\,x\right )}^2+a\right )}^p \,d x \]
[In]
[Out]